<%@ taglib prefix="s" uri="/struts-tags"%> 
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
<title>无标题文档</title>
<style type="text/css">
body { text-align: center; margin: 0px; padding: 0px;background-color:#E3EFFB; }
.table{ background-image: url(images/login/2.gif); background-repeat: no-repeat; background-position: 0px 0px; }
.input01{	font-family: "宋体";
			font-family: verdana;
		    border: none;
		    list-style-type: none;
		    height: 22px; width: 142px;
		    background-image: url(images/login/03.png); 
		    background-repeat: no-repeat;
		    background-position: 0px 0px; 
		    padding-left: 30px;
			padding-top: 4px;
			}
			
	 .input02{	font-family: "宋体";
			font-family: verdana;
			padding-left: 30px;
			padding-top: 4px;
		    border: none;
		    list-style-type: none;
		    height: 22px; width: 142px;
		    background-image: url(images/login/04.png); 
		    background-repeat: no-repeat;
		    background-position: 0px 0px; 
			}

</style>

<script type="text/javascript">
    if (top.location !== self.location) 
    { 
        top.location=self.location; 
    } 
     function cleardata()
    {
	    document.getElementById("userinfo_username").value="";
	    document.getElementById("userinfo_ksPwd").value="";
	    document.getElementById("userinfo_username").focus();
	    window.event.returnValue = false;
        return;
    }
    function checkdata()
    {
        var rValue=false;
        var iusername=document.getElementById("userinfo_username").value;
        var ipassword=document.getElementById("userinfo_ksPwd").value;
        if(iusername!="" && iusername!=null) 
        {
        	rValue=true;
        }
        else
        {
	         alert('请输入用户名！');
	         window.event.returnValue = false;
	         return;
         }
        if(rValue)
        {
            if(ipassword!="" && ipassword!=null) rValue=true;
            else
            {                
                alert('请输入密码！');
                window.event.returnValue = false;
                return;
            }
        }   
    }    
    </script>
</head>

<body>

 <form id="form1" action="/admin/merchant/login" method="post">  
    <div>
		<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGRcs8gwNQB05GcPS2+ad5hI2SS5Ug==" />
	</div>
	<div>
			<table width="1067" height="600" class="table" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
			    <td width="387" height="188">&nbsp;</td>
			    <td width="359">&nbsp;</td>
			    <td width="321">&nbsp;</td>
			  </tr>
			  <tr>
			    <td height="200">&nbsp;</td>
			    <td align="left" valign="middle" style="padding-left:20px;">
					<table width="263" border="0" cellspacing="0" cellpadding="0">
					  <tr >
						<td width="70" height="49" align="right">用户：</td>
						<td width="193" align="left" valign="top" style="padding-left:1px; padding-top:12px;">
							<input name="userId" id="userinfo_username" type="text" class="input01"  border="0"/>
						</td>
					  </tr>
					  <tr>
						<td height="49" align="right" >密码：</td>
						<td align="left" valign="top" style="padding-left:1px; padding-top:10px;">
							<input name="userPwd" id="userinfo_ksPwd" type="password" class="input02"  border="0"/>
						</td>
					  </tr>
					  <tr>
						    <td height="25" colspan="2" align="center" style="padding-top:10px;">
								<input type="image" src="images/login/1.png" onclick="checkdata();" />			    
								<input type="image" onclick="cleardata();" src="images/login/2.png" />
							</td>
					  </tr>
			          </table>
				</td>
			    <td>&nbsp;</td>
			  </tr>
			  <tr>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
			  </tr>
			</table>	
	</div>
	  	<script type="text/javascript">
	        document.getElementById("userinfo_username").focus();
	    </script>
</form>
</body>
</html>
